<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS复合选择器之链接伪类选择器</title>
    <style>
        /* a:link {
            color: black;
        }

        a:visited {
            color: blue;
        }

        a:hover {
            color: blue;
        }

        a:active {
            color: darkgrey;
        } */

        a {
            color: black;
            text-decoration: none;
        }

        a:hover {
            color: blue;
            text-decoration: underline;
        }
    </style>
</head>

<body>
    a:link <br>
    <!-- 选择所有未被访问的链接 -->
    a:visited <br>
    <!-- 选择所有已被访问的链接 -->
    a:hover <br>
    <!-- 选择鼠标指针位于其上的链接 -->
    a:active <br>
    <!-- 选择活动链接（鼠标按下为弹起的链接） -->

    <a href="#">未知的网站</a>

</body>

</html>